//
//  MusicDataBase.h
//  老司机发车了标准版
//
//  Created by SuperNing on 16/8/11.
//  Copyright © 2016年 斌. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"
#import "PlayerModel.h"


@interface MusicDataBase : NSObject

@property (nonatomic, strong) FMDatabase *dataBase;


+ (instancetype)shareMusicDataBase;

- (void)openDB;

- (void)createTableWithTableName:(NSString *)tableName;

// 添加数据
- (void)insertDataWithModel:(PlayerModel *)playmodel;

// 删除数据
- (void)deleteDataWithTableName:(NSString *)tableName songid:(NSString *)songid;

// 查询数据
- (NSMutableArray *)selectOneDataWithTableName:(NSString *)tableName;

@property (nonatomic, strong) NSString *tableName;



@end
